//
//
//  Created by hfkj on 2020/3/31.
//  Copyright © 2020 XLH. All rights reserved.
//

#import "MJUITableView.h"

@implementation MJUITableView

- (instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style {
    if(self = [super initWithFrame:frame style:style]){
        [self setUIAppearance];
    }
    return self;
}
- (void)awakeFromNib
{
    [super awakeFromNib];
    [self setUIAppearance];
}
- (void)setUIAppearance{
//    self.separatorColor = kLineColor;
    //隐藏分割线
    self.separatorStyle = UITableViewCellSeparatorStyleNone;
    self.backgroundColor = UIColor.whiteColor;
    self.estimatedSectionHeaderHeight = 0;
    self.estimatedSectionFooterHeight = 0;
    self.backgroundColor = UIColor.mj_backgroundColor;
    if (@available(iOS 15.0, *)) {
        self.sectionHeaderTopPadding = 0;
    } else {
        // Fallback on earlier versions
    }
}

@end
